package com.auxgroup.smarthome.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 滤网故障表
 * Created by lixiaoxiao on 17-8-14.
 */
@Entity
@Table(name = "app_filter_fault")
public class AppFilterFaultEntity extends AbstractGenericEntity {
    @Id
    @Column(name = "mac", length = 36)
    private String mac;

    @Column(name = "boot_time",columnDefinition = "int NOT NULL COMMENT '持续时间'")
    private int bootTime;

    @Column(name = "is_wash",columnDefinition = "bool NOT NULL COMMENT '是否需要清洗'")
    private Boolean wash;

    @Column(name = "confirm_by",columnDefinition = "varchar(50) DEFAULT NULL COMMENT '确认人'")
    private String confirmBy;

    @Column(name = "confirm_time")
    private Long confirmTime;

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getBootTime() {
        return bootTime;
    }

    public void setBootTime(int bootTime) {
        this.bootTime = bootTime;
    }

    public Boolean getWash() {
        return wash;
    }

    public void setWash(Boolean wash) {
        this.wash = wash;
    }

    public String getConfirmBy() {
        return confirmBy;
    }

    public void setConfirmBy(String confirmBy) {
        this.confirmBy = confirmBy;
    }

    public Long getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Long confirmTime) {
        this.confirmTime = confirmTime;
    }

    public AppFilterFaultEntity() {
    }

    public AppFilterFaultEntity(String mac, int bootTime, Boolean wash) {
        this.mac = mac;
        this.bootTime = bootTime;
        this.wash = wash;
    }
}
